package com.example.loginpilot_01.service.file;

import com.example.loginpilot_01.entity.FileInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface FileInfoRepository extends JpaRepository<FileInfo, Integer> {
    // 按上传时间倒序查询所有文件（最新的在前）
    List<FileInfo> findAllByOrderByUploadTimeDesc();
}